package com.tsd.system.service;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysGroupRole;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;


/**
 * 描述：SysGroupRole服务实现层接口
 *
 * @author Hillpool
 * @date 2019/03/12 12:20:51
 */
public interface SysGroupRoleService {

    /**
     * 描述：根据id获取SysGroupRole
     *
     * @param id
     */
    SysGroupRole getSysGroupRoleById(Long id) throws Exception;

    /**
     * 描述：保存或更新SysGroupRole
     *
     * @param record
     * @param sysUser
     */
    void saveSysGroupRole(SysGroupRole record, SysUser sysUser) throws Exception;

    /**
     * 描述：根据id删除SysGroupRole
     *
     * @param id
     */
    void deleteSysGroupRole(Long id) throws Exception;

    /**
     * 描述：根据params分页查询SysGroupRole
     *
     * @param params
     * @param page
     */
    List<SysGroupRole> findSysGroupRoles(Map<String, Object> params, PageBean page) throws Exception;

    List<SysGroupRole> findSysGroupRolesByGroupSid(String groupSid) throws Exception;

    void saveSysRoleList2Group(SysUser opUser, String groupSid, List<String> roleIdList) throws Exception;
}
